package edu.umb.cs.antmanager.manager;

import java.util.List;

import org.xml.sax.Attributes;
import org.xml.sax.helpers.DefaultHandler;

public class SummaryHandler extends DefaultHandler {
	private List<String> finishedTests;

	public SummaryHandler(List<String> finishedTests) {
		this.finishedTests = finishedTests;
	}

	@Override
	public void startElement(String uri, String localName, String qName,
			Attributes attributes) {
		if (localName.equals("phase")) {
			finishedTests.add(attributes.getValue(uri, "title"));
		}
	}
}
